#
# Be sure to run `pod lib lint YJUtils.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'LGKNote'
  s.version          = '1.0.0'
  s.summary          = '公共笔记'

  s.description      = <<-DESC
                       TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/yjhome/lgknote'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'LYajun' => 'liuyajun1999@icloud.com' }
  s.source           = { :git => 'https://gitee.com/yjhome/lgknote.git', :tag => s.version.to_s }

  s.ios.deployment_target = '9.0'
  s.source_files = 'LGKNote/Classes/**/*'
  s.resources = 'LGKNote/Assets/LGKNote.bundle'
  s.public_header_files = 'LGKNote/Classes/LGKNote.h'


  s.subspec 'Const' do |c|
      c.source_files = 'LGKNote/Classes/Const/*'
      c.dependency 'YJBaseModule'
      c.dependency 'YJUtils'
      c.dependency 'YJImageBrowser'
      c.dependency 'YJSearchController'
      c.dependency 'XMLDictionary'
      c.dependency 'YJNetManager'
      c.dependency 'YJPresentAnimation'
      c.dependency 'MarqueeLabel'
      c.dependency 'BlocksKit'
      c.dependency 'LGAlertHUD'
  end

  s.subspec 'Base' do |b|
      b.source_files = 'LGKNote/Classes/Base/*'
      b.dependency 'LGKNote/Const'
  end

  s.subspec 'RichTextEditor' do |rt|
      rt.source_files = 'LGKNote/Classes/RichTextEditor/*'
      rt.dependency 'LGKNote/Const'
  end

  s.subspec 'Common' do |co|
      co.source_files = 'LGKNote/Classes/Common/*'
      co.dependency 'LGKNote/Const'
  end

  s.subspec 'DrawBoardView' do |d|
      d.source_files = 'LGKNote/Classes/DrawBoardView/*'
      d.dependency 'LGKNote/Const'
  end

  s.subspec 'FIlterView' do |f|
      f.source_files = 'LGKNote/Classes/FIlterView/*'
      f.dependency 'LGKNote/Const'
  end

  s.subspec 'Main' do |m|
      m.source_files = 'LGKNote/Classes/Main/*'
      m.dependency 'LGKNote/Const'
      m.dependency 'LGKNote/Common'
      m.dependency 'LGKNote/Base'
      m.dependency 'LGKNote/RichTextEditor'
      m.dependency 'LGKNote/DrawBoardView'
      m.dependency 'LGKNote/FIlterView'
  end
  s.subspec 'NewNote' do |n|
      n.source_files = 'LGKNote/Classes/NewNote/*'
      n.dependency 'LGKNote/Main'
  end
end
